package com.tpshion.cloud.auth.domain.dto;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Valid
public class AddPerMissionDto {

    @NotEmpty(message = "权限不能为空")
    @Size(max = 30, message = "权限长度不能超过30")
    private String name;

    @NotEmpty(message = "接口路径不能为空")
    @Size(max = 30, message = "接口路径长度不能超过30")
    private String path;

    @Size(max = 30, message = "系统码长度不能超过30")
    private String sysCode;

    @Size(max = 50, message = "权限说明长度不能超过50")
    private String note;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getSysCode() {
        return sysCode;
    }

    public void setSysCode(String sysCode) {
        this.sysCode = sysCode;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public String toString() {
        return "AddPerMissionDto{" +
                "name='" + name + '\'' +
                ", path='" + path + '\'' +
                ", sysCode='" + sysCode + '\'' +
                ", note='" + note + '\'' +
                '}';
    }
}
